﻿<vuc:VNetUserControl x:Class="VNet.VisiSuite.Controls.FindBox"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                     xmlns:vuc="clr-namespace:VNet.VisiSuite.Controls"
                     mc:Ignorable="d"
                     FocusManager.FocusedElement="{Binding ElementName=_find}"
                     Loaded="onLoaded"
                     VerticalAlignment="Center" HorizontalAlignment="Left" Margin="16,0,0,0"
                     d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Assets/Themes/Metro/Styles.WPF.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style x:Key="MetroIconText" TargetType="TextBlock">
                <Setter Property="FontFamily" Value="Segoe UI" />
                <Setter Property="FontSize" Value="13.33" />
                <Setter Property="FontWeight" Value="Normal" />
                <Setter Property="Foreground" Value="#FF00AADE" />
                <Setter Property="VerticalAlignment" Value="Top" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="Margin" Value="0,4,0,0" />
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Opacity" Value="0.25" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>

    <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
        <Border Background="White" BorderThickness="0">
            <TextBox x:Name="_find" Style="{StaticResource TextBoxStyle}" Width="200" KeyDown="onKeyDown"
                     FontSize="14.6667" BorderThickness="0" Focusable="True" CharacterCasing="Upper" />
        </Border>
        <TextBlock Style="{StaticResource MetroIconText}" Foreground="White" Text="Find" />
    </StackPanel>
</vuc:VNetUserControl>